<template>
  <div>
    <v-list  @update="update"></v-list>
    <v-form :info="info" ref="f"></v-form>
  </div>
</template>
<script>
import vForm from "./components/form.vue";
import vList from "./components/list.vue";
export default {
  components: {
    vForm,
    vList,
  },
  data() {
    return {
      info: {
        isshow: false,
        isadd: true,
      },
      size: 2
    };
  },
  methods: {
    add() {
      this.info.isshow = true;
      this.info.isadd = true;
    },
    update(uid) {
      this.info.isshow = true;
      this.info.isadd = false;
      this.$refs.f.one(uid);
    },
  },
};
</script>
<style>
</style>